import L from './localStore'
let remote = ''

export default {
  async ExecuteServer (dllPath, className, methodName, params) {

  },

  async GenerateConfigFiles (ip, isCover = false) {
    try {
    } catch (e) {
      throw new Error('无权限进行此操作！请退出软件后，以管理员身份重新运行软件，再尝试此操作')
    }
  },
  async SetCoverBackground () {
    try {
      let cover = L.LocalStore.getCustomizedCover()
      if (cover) {
        let defaultCover = cover.CustomizedCover.find((x) => {
          return x.id === cover.DefaultCover
        })
        defaultCover = {
          id: cover.DefaultCover,
          image: defaultCover ? defaultCover.coverImage : ''
        }
        await SQLite.SetCoverTemplateBackground(defaultCover)
      }
    } catch (error) {
      throw error
    }
  }
}
